package com.medi.chats.service.activities;

import com.medi.chats.dao.McActivitiesMapper;
import com.medi.chats.model.McActivities;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述:
 * 活动服务
 *
 * @outhor Administrator
 * @create 2018-10-25 16:12
 */
@Service
public class ActivitiesService {

    @Autowired
    McActivitiesMapper mcActivitiesMapper;

    /**
     * @Description  获取正在进行的活动，显示在 swiper 中
     * @Author        Administrator
     * @Return
     * @Date          2018/10/25 17:15
    */
    public List<McActivities> selectActivities() {
        return mcActivitiesMapper.selectActivitiesSortOrder();
    }
}
